﻿using System;
using System.Configuration;

namespace SimpleServiceBus.Endpoints.DotNetServiceBus.Configuration
{
    public class DotNetServiceBusConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("solutionName")]
        public string SolutionName
        {
            get { return (string)base["solutionName"]; }
            set { base["solutionName"] = value; }
        }

        [ConfigurationProperty("solutionPassword")]
        public string SolutionPassword
        {
            get { return (string)base["solutionPassword"]; }
            set { base["solutionPassword"] = value; }
        }

        [ConfigurationProperty("sendTimeOut")]
        public TimeSpan SendTimeOut
        {
            get { return (TimeSpan)base["sendTimeOut"]; }
            set { base["sendTimeOut"] = value; }
        }

        [ConfigurationProperty("receiveTimeOut")]
        public TimeSpan ReceiveTimeOut
        {
            get { return (TimeSpan)base["receiveTimeOut"]; }
            set { base["receiveTimeOut"] = value; }
        }
    }
}
